import i18n from '@/common/lang'

export const columns = [
  {
    label: i18n.t('financialSynergy.invoice.invoiceId'),
    // label: '开票通知单号',
    // minWidth: 140,
    width: 'auto',
    prop: 'number',
    fixed: true
  },
  // {
  //   label: i18n.t('financialSynergy.invoice.supplierName'),
  //   // label: '开票通知单号',
  //   width: 'auto',
  //   // minWidth: 200,
  //   prop: 'dictType',
  //   fixed: true
  // },

  {
    label: i18n.t('financialSynergy.invoice.invoiceType'),
    width: 'auto',
    prop: 'invoiceType',
    fixed: true
  },
  {
    label: i18n.t('financialSynergy.invoice.invoiceDate'),
    width: 'auto',
    // minWidth: 160,
    prop: 'invoicingDate',
    fixed: true
  },
  {
    label: i18n.t('financialSynergy.invoice.invocieAmount'),
    width: 'auto',
    prop: 'amount'
  },

  {
    label: i18n.t('financialSynergy.invoice.creatBy'),
    width: 'auto',
    prop: 'createName'
  },
  {
    label: i18n.t('financialSynergy.invoice.ceratTime'),
    width: 'auto',
    prop: 'createTime'
  },
  {
    label: i18n.t('financialSynergy.invoice.state'),
    width: 'auto',
    prop: 'state'
  }
]
export const actions = [
  {
    key: 'draw',
    text: '开票',
    permissions: 'srm:invoiceNotice:invoicing'
  },
  {
    key: 'email',
    text: '邮寄发票',
    permissions: 'srm:invoiceNotice:mail'
    // permissions: ''
  },
  {
    key: 'view',
    text: '详情',
    permissions: 'srm:invoiceNoticeSupplier:detail'
  }
]

export const itemColumns = [
  // {
  //   label: i18n.t('financialSynergy.invoice.billId'),
  //   // minWidth: 140,
  //   width: 'auto',
  //   prop: 'billId',
  //   fixed: true
  // },
  {
    label: i18n.t('financialSynergy.invoice.billNumber'),
    // minWidth: 140,
    width: 'auto',
    prop: 'billNumber',
    fixed: true
  },
  {
    label: i18n.t('financialSynergy.invoice.billStartData'),
    // minWidth: 140,
    width: 'auto',
    prop: 'beginDate'
  },
  {
    label: i18n.t('financialSynergy.invoice.billEndDate'),
    // minWidth: 140,
    width: 'auto',
    prop: 'endDate',
    fixed: true
  },
  {
    label: i18n.t('financialSynergy.invoice.totalAmountNoTax'),
    // minWidth: 140,
    width: 'auto',
    prop: 'untaxedAmount'
  },
  {
    label: i18n.t('financialSynergy.invoice.totalAmountTax'),
    // minWidth: 140,
    width: 'auto',
    prop: 'totalAmount'
  }
]
